<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>简单的迭代</title>
    <script src="../angular/angular.js"></script>
    <script src="js/app.js"></script>
    <script src="js/controller.js"></script>
</head>
<body ng-app="repeat">

<div ng-controller="MyController" ng-init="people.list">

    <table>
        <tr ng-repeat="person in people.list">
            <td style="color: {{person.age > 23 ? 'red' : 'blue'}}">{{person.name}}</td>
            <td>{{person.age }}</td>
            <td style="color: red">{{person.age > 23 ?'old':''}}</td>
        </tr>
    </table>

    <button ng-click="click()">
        Just Click Me !!!
    </button>

</div>


</body>
</html>